package com.example.sources.jdbc.tool;

import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by Administrator on 2016/9/20.
 */
public class RegexUtil {
    public static List<String> matchSpecificString(String source,String targetString){
        Pattern p = Pattern.compile("<(.*?)>");
        Matcher m = p.matcher(source);
        List<String> result=new ArrayList<String>();
        while(m.find()){
            result.add(m.group(1));
        }
        return result;
    }
}
